package org.adream.account.entity;

import java.io.Serializable;

/**
 * 教师：职称 政府：行政级别
 * 
 * @author sl
 *
 */
public class GradeEntity extends PubClass implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5721993914337962767L;

	private Integer gid;

	private String gname;

	private Integer pid; // 父级gid

	private GradeEntity pGrade; // 父级grade

	public Integer getGid() {
		return gid;
	}

	public void setGid(Integer gid) {
		this.gid = gid;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public GradeEntity getpGrade() {
		return pGrade;
	}

	public void setpGrade(GradeEntity pGrade) {
		this.pGrade = pGrade;
	}

	@Override
	public String getTable() {
		return "acc_grade";
	}

	@Override
	public String toString() {
		return "GradeEntity [gid=" + gid + ", gname=" + gname + ", pid=" + pid + ", pGrade=" + pGrade + "]";
	}
}